//路由配置文件
export default [
    {
        path:'/',
        name:'home',
        component:()=>import('../views/Home/index.vue'),
        children:[
            {
                path:'/newadmin',
                name:'newAdmin',
                component:()=>import('../views/Admin/NewAdmin/index.vue')
            },
            {
                path:'/menulist',
                name:'menuList',
                component:()=>import('../views/Menu/MenuList/index.vue')
            },
            {
                path:'/addfood',
                name:'addFood',
                component:()=>import('../views/Food/AddFood/index.vue')
            },
            {
                path:'/foodlist',
                name:'foodList',
                component:()=>import('../views/Food/FoodList/index.vue')
            },
            {
                path:'/newadmin/:id',
                name:'editAdmin',
                component:()=>import('../views/Admin/NewAdmin/index.vue')
            },
            {
                path:'/adminlist',
                name:'adminList',
                component:()=>import('../views/Admin/AdminList/index.vue')
            },
            {
                path:'/userlist',
                name:'userList',
                component:()=>import('../views/User/UserList/index.vue')
            },
            {
                path:'/edituser/:id',
                name:'edituser',
                component:()=>import('../views/User/EditUser/index.vue')
            },
            {
                path:'/messagelist',
                name:'messageList',
                component:()=>import('../views/Message/MessageList/index.vue')
            }
        ]
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('../views/Login/index.vue')
    }
]